package com.sh.pojo.bo;

import com.sh.annotation.EnumValid;
import com.sh.enums.PermissionTypeEnum;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;


@Data
public class UpdatePermissionBO {
    @NotBlank(message = "用户ID不能为空！")
    private String userId;
    @NotBlank(message = "桶名不能为空！")
    private String bucket;
    @EnumValid(target = PermissionTypeEnum.class, message = "权限类型不正确！")
    private String permission;
//    @NotBlank(message = "文件夹不能为空！")
    @Pattern(regexp = ".*/$", message = "路径需要以'/'结束")
    private String path;

}
